package com.hsmpay.mobile.service.bank.city;

import com.hsmpay.common.service.BaseService;
import com.hsmpay.mobile.pojo.bank.city.BankCity;
import com.hsmpay.mobile.pojo.bank.city.BankProvince;

import java.io.Serializable;
import java.util.List;

/**
 * 银行城市业务接口 bankCityService
 * 对应数据层 bankCityDao bankProvinceDao
 *
 * @param <Entity>
 * @param <Query>
 * @author 颜铃璋
 * @date 2013-5-20
 */
public interface BankCityService<Entity extends Serializable, Query extends Object> extends BaseService<Entity, Query> {
    /**
     * 导入万三银行城市  数据
     *
     * @param xmlRealPath
     * @return
     * @throws Exception
     */
    public int importDataByXml(String xmlRealPath) throws Exception;

    /**
     * 导出新的 xml
     *
     * @param xmlRealPath
     * @return
     * @throws Exception
     */
    public int expotDataToXml(String xmlRealPath) throws Exception;

    /**
     * 获得所有的省
     *
     * @return
     * @throws Exception
     */
    public List<BankProvince> getBankProvinceList() throws Exception;

    /**
     * 获得所有 省级下面的第一级
     *
     * @return
     * @throws Exception
     */
    public List<BankCity> getBankSecondCityList() throws Exception;

    /**
     * 获得所有 省级下面的第一级
     *
     * @param provinceId
     * @return
     * @throws Exception
     */
    public List<BankCity> getBankSecondCityList(Long provinceId) throws Exception;
}
